Skip to content

Conversation

haines
Copy link
Contributor

@haines haines commented Jun 17, 2024

When calling SetArgs with Get: true, it's useful to be able to read the result as bytes rather than a string (in the same way you would with Get). However, SetArgs returns *StatusCmd (which doesn't implement the Bytes() method) rather than *StringCmd (which does).

This PR adds a Bytes() method to *StatusCmd to support this use case.

Signed-off-by: Andrew Haines <[email protected]>
@monkey92t monkey92t merged commit 2d7382e into redis:master Jun 21, 2024
@haines haines deleted the status-cmd-bytes branch June 21, 2024 05:24
ofekshenawa pushed a commit that referenced this pull request Aug 10, 2025
Signed-off-by: Andrew Haines <[email protected]>
Co-authored-by: Monkey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants